{template header}
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.command.webTitle('基本资料');
})
</script>
<div class="top_1"></div>
<div class="top_2">
	<div class="con_left">
		{template userlogin}
	</div>
	<div class="con_box_left">
		<form action="user-detail.htm" method="post" onsubmit="return verifyFrom();">
		<table width="100%" border="0" cellspacing="2" cellpadding="2" style="text-align:center">
			<tr>
				<td width="20%" height="30" align="right">真实姓名：</td>
				<td width="80%" align="left"><input type="text" name="user[realName]" value="$user[realName]" class="in_text_cla1"/></td>
			</tr>  
			<tr>
				<td height="30" align="right">手机号码：</td>
				<td align="left"><input type="text" name="user[mobile]" value="$user[mobile]" class="in_text_cla1" /></td>
			</tr> 
			<tr>
				<td height="30" align="right">联系电话：</td>
				<td align="left"><input type="text" name="user[phone]" value="$user[phone]" class="in_text_cla1" /></td>
			</tr>
			<tr>
				<td height="30" align="right">邮箱：</td>
				<td align="left">$user[email]</td>
			</tr> 
			<tr>
				<td height="30" align="right">公司名称：</td>
				<td align="left">$user[company]</td>
			</tr>
			<tr>
				<td height="30" align="right">地区：</td>
				<td align="left"><select name="province" id="province" style="width: 150px;" onchange="ajaxget('site-ajaxCity-'+this.value+'.htm', 'showCity', 'showCity', null, null)">
				<option value="">请选择区域</option>
				<!--{loop $areaList $v}-->
				<option value="{$v[id]}" {if $area[fId]==$v[id]}selected="selected"{/if}>{$v[name]}</option>
				<!--{/loop}-->
				</select>
				<span id="showCity">
				<select name="user[areaId]" id="city" style="width: 150px;">
				<option value="">请选择区域</option>
				<!--{loop $subAreaList $v}-->
				<option value="{$v[id]}" {if $user[areaId]==$v[id]}selected="selected"{/if}>{$v[name]}</option>
				<!--{/loop}-->
				</select>
				</span>
				<span style="color:red" id="err_city"></span></td>
			</tr>
			<tr>
				<td height="30" align="right">地址：</td>
				<td align="left"><input type="text" name="user[address]" value="$user[address]" class="in_text_cla1" style="width:300px" />(请填写详细，为收货地址)</td>
			</tr>
			<tr>
				<td height="30" align="right">邮编：</td>
				<td align="left"><input type="text" name="user[postCode]" value="$user[postCode]" class="in_text_cla1" /></td>
			</tr>
			<tr>
				<td height="30" align="right">&nbsp;</td>
				<td align="left">
				<input type="submit" name="submitTo" value="  提交  " class="in_button_cla1" />
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<div class="top_3"></div>
<script>
function verifyFrom() {
//	var company = $('company');
//	if(company.value == '') {
//		$('company').focus();
//		$('err_company').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请填写公司名称</span>';
//		return false;
//	}
//	var email = $('email');
//	if(email.value == '') {
//		$('email').focus();
//		$('err_email').innerHTML = '<span style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;请输入邮箱</span>';
//		return false;
//	}
	return true;
}
</script>
{template footer}